package com.my.study.designPatterns.facadePattern;

public class MyHomeFacadePattern {


    private Heater heater;
    private Light diningRoomLight;
    private Light bedroomLight;
    private Light bathRoomLight;
    private TV tv;


    public MyHomeFacadePattern(Heater heater, Light diningroomLight, Light bedroomLight, Light bathroomLight, TV tv) {
        this.heater = heater;
        this.diningRoomLight = diningroomLight;
        this.bedroomLight = bedroomLight;
        this.bathRoomLight = bathroomLight;
        this.tv = tv;
    }



    public void backHome(){

        bedroomLight.open();
        diningRoomLight.open();
        bathRoomLight.open();
        heater.open();
        tv.open();
    }
}
